#ifndef __kraw__PNGTextureLoader_h__
#define __kraw__PNGTextureLoader_h__

#include "resource/texture/textureloader.h"
#include <png.h>

namespace kraw
{
	class PNGTextureLoader : public TextureLoader
	{
	public:
		
		PNGTextureLoader(const std::string& name);
		virtual ~PNGTextureLoader();

		virtual bool load();
		virtual void unload();

		png_structp png_ptr;
		png_infop info_ptr;

		unsigned char* data;
		size_t byte;
	};
}

#endif
